package com.example.safeassistan.risk.model;

import java.io.Serializable;
import java.util.List;

public class RiskPointtableModel implements Serializable {


    /**
     * success : true
     * message : 操作成功！
     * code : 200
     * result : [{"id":"1382505740672790529","tableName":"分级管控","checkCount":0,"type":1,"dangerVOList":[{"id":"1380423766156083202","dangerSrcName":"自动扶梯","dangerLevel":"4"}]}]
     * timestamp : 1624245858709
     */

    private Boolean success;
    private String message;
    private Integer code;
    private Long timestamp;
    private List<ResultDTO> result;

    public Boolean isSuccess() {
        return success;
    }

    public void setSuccess(Boolean success) {
        this.success = success;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public Long getTimestamp() {
        return timestamp;
    }

    public void setTimestamp(Long timestamp) {
        this.timestamp = timestamp;
    }

    public List<ResultDTO> getResult() {
        return result;
    }

    public void setResult(List<ResultDTO> result) {
        this.result = result;
    }

    public static class ResultDTO implements Serializable{
        /**
         * id : 1382505740672790529
         * tableName : 分级管控
         * checkCount : 0
         * type : 1
         * dangerVOList : [{"id":"1380423766156083202","dangerSrcName":"自动扶梯","dangerLevel":"4"}]
         */

        private String id;
        private String tableName;
        private Integer checkCount;
        private Integer type;
        private List<DangerVOListDTO> dangerVOList;

        public String getId() {
            return id;
        }

        public void setId(String id) {
            this.id = id;
        }

        public String getTableName() {
            return tableName;
        }

        public void setTableName(String tableName) {
            this.tableName = tableName;
        }

        public Integer getCheckCount() {
            return checkCount;
        }

        public void setCheckCount(Integer checkCount) {
            this.checkCount = checkCount;
        }

        public Integer getType() {
            return type;
        }

        public void setType(Integer type) {
            this.type = type;
        }

        public List<DangerVOListDTO> getDangerVOList() {
            return dangerVOList;
        }

        public void setDangerVOList(List<DangerVOListDTO> dangerVOList) {
            this.dangerVOList = dangerVOList;
        }

        public static class DangerVOListDTO implements  Serializable{
            /**
             * id : 1380423766156083202
             * dangerSrcName : 自动扶梯
             * dangerLevel : 4
             */

            private String id;
            private String dangerSrcName;
            private String dangerLevel;
            private Boolean isSelect;

            public Boolean getSelect() {
                return isSelect;
            }

            public void setSelect(Boolean select) {
                isSelect = select;
            }

            public String getId() {
                return id;
            }

            public void setId(String id) {
                this.id = id;
            }

            public String getDangerSrcName() {
                return dangerSrcName;
            }

            public void setDangerSrcName(String dangerSrcName) {
                this.dangerSrcName = dangerSrcName;
            }

            public String getDangerLevel() {
                return dangerLevel;
            }

            public void setDangerLevel(String dangerLevel) {
                this.dangerLevel = dangerLevel;
            }
        }
    }
}
